package com.aipartner.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 用户上传记录实体
 */
@Data
@TableName("user_upload_records")
public class UserUploadRecord {
    
    @TableId(type = IdType.AUTO)
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;
    
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long userId;
    
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long exampleId;
    
    private String originalFilename;
    
    private String filePath;
    
    private Integer fileSize;
    
    private String title;
    
    private String prompt;
    
    private String style;
    
    private String size;
    
    private Integer reviewStatus;
    
    private String rejectReason;
    
    private LocalDateTime uploadTime;
    
    private LocalDateTime reviewTime;
    
    private Long reviewerId;
    
    // 状态常量
    public static final int STATUS_PENDING = 0;
    public static final int STATUS_APPROVED = 1;
    public static final int STATUS_REJECTED = 2;
}
